def print_lol(the_list):
    for i in the_list:
        if isinstance(i,list):
            print_lol(i)
        else:
            #print(i)
            #return i
            #print(a)
            a.append(i)
    #print(a)
    for x in range(len(a)):
        for y in range(x+1,len(a)):
            if a[x] > a[y]:
                a[x],a[y]=a[y],a[x]
    #print(a)


    #print(a)


a = []
the_list = [21,44,2,45,33,4,3,[67,[100,300,76]]]
print_lol(the_list)
print('MIN is :' + str(a[0]))
print('MAX is :' + str(a[len(a)-1]))